package day14;

import day6.pet.Penguiun;
import day6.pet.Pet;

import java.io.IOException;

/**
 * @author oldliu
 * @since 1.0
 */
public class Son extends Father {
    public static void print(){
        System.out.println("这是子类的静态方法print");
    }

    @Override
    public void m1() throws IOException {
//        try {
//            super.m1();
//        } catch (Exception e) {
//            e.printStackTrace();
//        }
    }

    //错误
//    @Override
//    public void m2()throws Exception {
//
//    }


    @Override
    public Penguiun buy() {
         return  null;
    }
}
